package com.project.role;

import com.project.frame.GameStartFrame;
import com.project.util.ImageChange;

import java.awt.*;
import java.util.List;

/**
 * boss类
 */
public class Boss extends BaseRole {
    /**
     * Boss图片数组
     */
    public static Image[] bossImg;


    /**
     *图片切换算法对象
     */
    private ImageChange imageChange = new ImageChange(3);

    public Boss() {
        super(500, 100, 240, 220);
    }


    @Override
    public void move() {

        this.img = imageChange.change(bossImg);

    }

    @Override
    public void collision() {
//        List<BaseRole> roleList = GameStartFrame.roleList;
//        for (int i = 0; i < roleList.size(); i++) {
//            BaseRole role = roleList.get(i);
//            if (role instanceof GirlBullet) {
//                if (role.rect.intersects(this.rect)) {
//                    role.hp = -1;
//                    this.hp-=width/50;
//                }
//            }
//        }
    }

}
